package net.viralpatel.struts2;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import com.opensymphony.xwork2.ActionSupport;

public class YoyakuAction extends ActionSupport{
	private List<Time_T> lists;
	private String resultData;
	private String room_category;
	private String kaidan;
	private String date;
	JDBCQuery jdbc;
	ResultSet rs;
	public String execute()
	{

		resultData="kaka";
		System.out.println(kaidan);
		System.out.println(date);
		System.out.println(room_category);
		try {
			jdbc=new JDBCQuery();
		lists=jdbc.getTime(kaidan, room_category, date);
			
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			System.out.println("error");
			e.printStackTrace();
		} catch (SQLException e) {
			 System.out.println("error");
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return ActionSupport.SUCCESS;
	}
	public List<Time_T> getLists() {
		return lists;
	}
	public void setLists(List<Time_T> lists) {
		this.lists = lists;
	}
	public String getKaidan() {
		return kaidan;
	}

	public void setKaidan(String kaidan) {
		this.kaidan = kaidan;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getRoom_category() {
		return room_category;
	}

	public void setRoom_category(String room_category) {
		this.room_category = room_category;
	}

	public String getResultData() {
		return resultData;
	}

	public void setResultData(String resultData) {
		this.resultData = resultData;
	}

}
